<template>
    <section class="headerBox">
        <div class="topBack"><Back :txt='txt' :to="backUrl"/></div>
        <div class="txt"><slot></slot></div>
    </section>
</template>

<script>
import { reactive ,toRefs,onMounted} from 'vue'
import Back from '@/components/back.vue'
export default {
    props:['txt','backUrl'],
    components:{
      Back  
    },
    setup(props,context) {
        const state = reactive({
           txt:props.txt,
           backUrl:props.backUrl
        })
    },
}
</script>

<style lang="scss" scoped>
    .headerBox{
        width: 100%;
        height: 107px;
        font-size: 30px;
        text-align: right;
        padding: 0 20px;
        background: url(/images/topbg.png) left top no-repeat;
        background-size: 100% 100%;
        color: #ffffff;
        b{
            color: #ff896b;
            padding: 0 5px;
            line-height: 107px;
        }
        .txt{
            display: inline;
            line-height: 107px;
        }
        .topBack{
            float: left;
            padding: 30px 0 0 8px;
        }
    }
</style>